package com.xcf.service.business.common.businesstype.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xcf.dao.DaoSupport;
import com.xcf.entity.Page;
import com.xcf.service.business.common.businesstype.BusinessTypeMaintainService;
import com.xcf.util.PageData;

@Service("businessTypeMaintainService")
public class BusinessTypeMaintainServiceImpl implements BusinessTypeMaintainService{
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	@SuppressWarnings("unchecked")
	public List<PageData> listBusinessTypeMaintain() throws Exception {
		return (List<PageData>)dao.findForList("BusinessTypeMaintain.findBusinessTypeMaintain", "");
	}
	@Override
	public void saveBusinessTypeMaintainInfo(PageData pd) throws Exception {
			dao.save("BusinessTypeMaintain.saveBusinessTypeMainTain", pd);
		
	}
	@Override
	public void deleteU(PageData pd) throws Exception {
		dao.delete("BusinessTypeMaintain.deleteBusiness",pd);
		
	}
	@Override
	public void updateBusinessTypeMaintainInfo(PageData pd) throws Exception {
		dao.update("BusinessTypeMaintain.updateBusiness",pd);
		
	}

}
